package com.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


public interface CommonMapper<T> extends BaseMapper<T> {


    @Select("${sql} limit #{pageIndex},#{pageSize}")
    public List<Map> findPageList(Map prams);

    @Select("${sql}")
    public List<Map> findList(Map prams);

    @Select("select count(*) from (${sql}) t")
    public int findListCount(Map prams);


    @Select("${sql}")
    public Map getMap(Map prams);

    @Select("${sql}")
    public String getString(Map prams);

}
